<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>

	<script>
		var arr=[1,2,3,4,5];
		var index=10;
		// var a=arr.findIndex(function(item){return item ==index});
		// console.log(a);
		var a = arr.indexOf(index);
		console.log(a);
	</script>
</body>
</html>
